package com.yang.beans;

/**
 * 描述:用户数据库模型类
 * @author 杨建全
 * @date 2017年5月19日 下午4:19:11
 */
public class User {
	
	//用户id
    private Integer id;			
    //用户名
    private String username;
    //用户姓名
    private String name;
    //用户密码
    private String password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

	@Override
	public String toString() {
		return "UserDto [id=" + id + ", username=" + username + ", name=" + name + ", password=" + password + "]";
	}
    
}